package com.powernode.model;

/**
 * @version 1.0
 * @Date 2024/8/21 20:51
 * @Author 付~~~
 */

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 购物车商品条目对象
 */
@ApiModel("购物车商品条目对象")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class CartItem implements Serializable {

    @ApiModelProperty("商品id")
    private Long prodId;

    @ApiModelProperty("商品skuId")
    private Long skuId;

    @ApiModelProperty("商品图片")
    private String pic;

    @ApiModelProperty("商品名称")
    private String prodName;

    @ApiModelProperty("商品sku名称")
    private String skuName;

    @ApiModelProperty("商品单价")
    private BigDecimal price;

    @ApiModelProperty("购物车Id")
    private Long basketId;

    @ApiModelProperty("商品购买数量")
    private Long prodCount;
}
